package com.ruoyi.business.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author 最爱喝兽奶
 * @create 2022/7/31
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("章节信息的业务对象")
public class ChapterInfoBo extends BaseEntity {

    @NotNull(groups = {EditGroup.class})
    private String id;

    /**
     * 章节名称
     */
    @NotNull(groups = {AddGroup.class})
    private String name;

    /**
     * 章节所对应的课程id
     */
    @NotNull(groups = {AddGroup.class})
    private String courseId;

    /**
     * 章节详情
     */
    private String info;

    /**
     * 章节数
     */
    private Long lessonNumber;

    /**
     * 小节数
     */
    private Long videoNumber;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;

}
